翻訳と辞書
Words near each other
・ Xperedon
・ Xperia Play
・ Xperiance NX hydrogen
・ Xperience Days
・ Xpert-Timer
・ Xpertdoc
・ XPF
・ XPG
・ XPG I protein domain
・ XPG N terminus
・ XPhos
・ XPIDL
・ XPilot
・ XOR (disambiguation)
・ XOR (video game)
XOR cipher
・ XOR gate
・ XOR linked list
・ XOR swap algorithm
・ Xor-encrypt-xor
・ Xorai
・ Xorazm FK Urganch
・ Xorazm Region
・ Xorazm Stadium
・ XOrbit
・ Xorcist
・ Xorcist (album)
・ Xorg.conf
・ Xoria
・ Xoricon AppCreator


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

XOR cipher : ウィキペディア英語版
XOR cipher

In cryptography, the simple XOR cipher is a type of ''additive cipher'',〔 〕 an encryption algorithm that operates according to the principles:
:A \oplus 0 = A,
:A \oplus A = 0,
:(A \oplus B) \oplus C = A \oplus (B \oplus C),
:(B \oplus A) \oplus A = B \oplus 0 = B,
where \oplus denotes the exclusive disjunction (XOR) operation. This operation is sometimes called modulus 2 addition (or subtraction, which is identical). With this logic, a string of text can be encrypted by applying the bitwise XOR operator to every character using a given key. To decrypt the output, merely reapplying the XOR function with the key will remove the cipher.
==Example==
For example, the string "Wiki" (01010111 01101001 01101011 01101001 in 8-bit ASCII) can be encrypted with the repeating key 11110011 as follows:
:
And conversely, for decryption:
:
The XOR operator is extremely common as a component in more complex ciphers. By itself, using a constant repeating key, a simple XOR cipher can trivially be broken using frequency analysis. If the content of any message can be guessed or otherwise known then the key can be revealed. Its primary merit is that it is simple to implement, and that the XOR operation is computationally inexpensive. A simple repeating XOR (i.e using the same key for xor operation on the whole data) cipher is therefore sometimes used for hiding information in cases where no particular security is required.
If the key is random and is at least as long as the message, the XOR cipher is much more secure than when there is key repetition within a message. When the keystream is generated by a pseudo-random number generator, the result is a stream cipher. With a key that is truly random, the result is a one-time pad, which is unbreakable even in theory.
In any of these ciphers, the XOR operator is vulnerable to a known-plaintext attack, since ''plaintext'' \oplus ''ciphertext'' = ''key''.

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「XOR cipher」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.